<template>
  <div class="my-table">
    <el-table :data="data" max-height="800">
<!--      <el-table-column label="序号" type="index" width="70" align="center"/>-->
      <my-column v-for="(item,index) in col" :key="index" :col="item"></my-column>
    </el-table>
  </div>
</template>

<script>
  import MyColumn from './my-column'
  export default {
    components: {
      MyColumn
    },
    props: {
      col: {
        type: Array
      },
      data: {
        type: Array
      }
    }
  }
</script>
<style scoped>
</style>
